<template>
  <div>
    <el-container>
        <el-header class="layout-header">
          <h1>酷鲨商城运营管理平台</h1>
        </el-header>
      <el-container class="layout-body">
        <el-aside class="layout-aside">
              <el-menu
                      router
                      :default-active="$router.currentRoute.path"
                      class="el-menu-vertical-demo"
                      background-color="#222c32"
                      text-color="#fff"
                      active-text-color="#fff">
                <el-menu-item index="/sys-admin/index">
                  <i class="el-icon-setting"></i>
                  <span slot="title">首页</span>
                </el-menu-item>
                <el-submenu index="2">
                  <template slot="title">
                    <i class="el-icon-s-tools"></i>
                    <span>临时页面</span>
                  </template>
                  <el-menu-item index="/sys-admin/temp/brand/add-new">
                    <i class="el-icon-circle-plus-outline"></i>
                    <span>添加品牌</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/brand/list" >
                    <i class="el-icon-s-operation"></i>
                    <span>品牌列表</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/category/add-new">
                    <i class="el-icon-circle-plus-outline"></i>
                    <span>添加类别</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/category/list">
                    <i class="el-icon-s-operation"></i>
                    <span>类别列表</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/album/add-new">
                    <i class="el-icon-circle-plus-outline"></i>
                    <span>添加相册</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/album/list">
                    <i class="el-icon-s-operation"></i>
                    <span>相册列表</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/template/add-new">
                    <i class="el-icon-circle-plus-outline"></i>
                    <span>添加属性模板</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/template/list">
                    <i class="el-icon-s-operation"></i>
                    <span>属性模板列表</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/admin/add-new">
                    <i class="el-icon-circle-plus-outline"></i>
                    <span>添加管理员</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/admin/list">
                    <i class="el-icon-s-operation"></i>
                    <span>管理员列表</span>
                  </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/attr/add-new">
                  <i class="el-icon-circle-plus-outline"></i>
                  <span>添加属性</span>
                </el-menu-item>
                  <el-menu-item index="/sys-admin/temp/attr/list">
                    <i class="el-icon-s-operation"></i>
                    <span>属性列表</span>
                  </el-menu-item>
                </el-submenu>
                <el-submenu index="3">
                  <template slot="title">
                    <i class="el-icon-goods"></i>
                    <span>商品管理</span>
                  </template>
                  <el-menu-item index="3-1">
                    <i class="el-icon-s-grid"></i>
                    <span>SPU台账</span>
                  </el-menu-item>
                  <el-menu-item index="3-2">
                    <i class="el-icon-circle-plus"></i>
                    <span>新增SPU</span>
                  </el-menu-item>
                  <el-menu-item index="3-3">
                    <i class="el-icon-picture"></i>
                    <span>相册管理</span>
                  </el-menu-item>
                  <el-menu-item index="3-4">
                    <i class="el-icon-menu"></i>
                    <span>商品类别</span>
                  </el-menu-item>
                  <el-menu-item index="3-5">
                    <i class="el-icon-s-flag"></i>
                    <span>属性模板</span>
                  </el-menu-item>
                  <el-menu-item index="3-6">
                    <i class="el-icon-s-data"></i>
                    <span>品牌管理</span>
                  </el-menu-item>
                </el-submenu>
                <el-submenu index="4">
                  <template slot="title">
                    <i class="el-icon-s-order"></i>
                    <span>订单管理</span>
                  </template>
                  <el-menu-item index="4-1">
                    <i class="el-icon-s-grid"></i>
                    <span>SPU台账</span>
                  </el-menu-item>
                  <el-menu-item index="4-2">
                    <i class="el-icon-circle-plus"></i>
                    <span>新增SPU</span>
                  </el-menu-item>
                  <el-menu-item index="4-3">
                    <i class="el-icon-picture"></i>
                    <span>相册管理</span>
                  </el-menu-item>
                  <el-menu-item index="4-4">
                    <i class="el-icon-menu"></i>
                    <span>商品类别</span>
                  </el-menu-item>
                  <el-menu-item index="4-5">
                    <i class="el-icon-s-flag"></i>
                    <span>属性模板</span>
                  </el-menu-item>
                  <el-menu-item index="4-6">
                    <i class="el-icon-s-data"></i>
                    <span>品牌管理</span>
                  </el-menu-item>
                </el-submenu>
                <el-submenu index="5">
                  <template slot="title">
                    <i class="el-icon-s-ticket"></i>
                    <span>营销管理</span>
                  </template>
                  <el-menu-item index="5-1">
                    <i class="el-icon-s-grid"></i>
                    <span>SPU台账</span>
                  </el-menu-item>
                  <el-menu-item index="5-2">
                    <i class="el-icon-circle-plus"></i>
                    <span>新增SPU</span>
                  </el-menu-item>
                  <el-menu-item index="5-3">
                    <i class="el-icon-picture"></i>
                    <span>相册管理</span>
                  </el-menu-item>
                  <el-menu-item index="5-4">
                    <i class="el-icon-menu"></i>
                    <span>商品类别</span>
                  </el-menu-item>
                  <el-menu-item index="5-5">
                    <i class="el-icon-s-flag"></i>
                    <span>属性模板</span>
                  </el-menu-item>
                  <el-menu-item index="5-6">
                    <i class="el-icon-s-data"></i>
                    <span>品牌管理</span>
                  </el-menu-item>
                </el-submenu>
              </el-menu>
        </el-aside>
        <el-container>
          <el-main class="layout-main">
            <router-view/>
          </el-main>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<style>
  .layout-header {
    background: #1684b0;
    color: #fff;
  }

  .layout-header h1 {
    line-height: 60px;
  }

  .layout-body {
    position: absolute;
    top: 60px;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .layout-aside {
    background: #222c32;
  }

</style>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'HomeView',
  components: {
    HelloWorld
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>
